package com.example.circular.bean;

/**
 * ClassName:Husband
 * Package:com.example.circular.bean
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/9-14:10
 * @Version:v1.0
 */
//丈夫类
public class Husband {

    private String name;

    private Wife wife ;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    @Override
    public String toString() {
        return "Husband{" +
               "name='" + name + '\'' +
               ", wife=" + wife.getName() +
               '}';
    }
}
